package com.lwei.ljpro.emun;

/**
 * 处理结果枚举类
 */
public enum ProcessResult {
    SUCCESS(0, "操作成功"),
    FAIL(1, "操作失败"),
    SYSTEM_ERROR(520, "系统错误"),
    SYSTEM_EXCEPTION(521, "系统抛出异常"),
    NOT_FOUND(440, "未找到");

    private int code;
    private String msg;

    ProcessResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
